{"version":3,"file":"popup_menu.min.js","sources":["popup_menu.js"],"names":["PopupMenu","id","zIndex","dxShadow","_this","this","menu_id","controlDiv","menuItems","submenus","bDoHide","parentItem","parentMenu","submenuIndex","bHasSubmenus","OnClose","isNaN","Create","div","document","createElement","className","style","position","left","top","visibility","onclick","PreventDefault","body","appendChild","innerHTML","ClearItemsStyle","tbl","getElementById","i","rows","length","jsUtils","FindChildObject","cells","indexOf","replace","PopupShow","pos","BuildItems","setTimeout","addEvent","CheckClick","OnKeyPress","w","offsetWidth","h","offsetHeight","AlignToPos","width","jsFloatDiv","Show","ondrag","False","onselectstart","MozUserSelect","PopupHide","IsVisible","Close","removeEvent","e","arScroll","GetWindowScrollPos","x","clientX","scrollLeft","y","clientY","scrollTop","posLeft","parseInt","posTop","posRight","posBottom","GetRealPos","window","event","keyCode","stopPropagation","preventDefault","cancelBubble","returnValue","GetItemIndex","item","item_id","item_index","substr","ShowSubmenu","bMouseOver","bDontShow","dxTime","Date","valueOf","menu","SetItems","MENU","ONMENUPOPUP","eval","item_pos","menu_pos","right","bottom","OnSubmenuMouseOver","OnItemMouseOver","HideSubmenu","OnSubmenuMouseOut","OnItemMouseOut","items","SetItemIcon","icon","String","ID","ICONCLASS","item_td","SetAllItemsIcon","n","deleteRow","row","insertRow","cell","insertCell","s","htmlspecialchars","item_div","onmouseover","onmouseout","parentNode","GetItemInfo","td","icon_div","TEXT","TITLE","title","ICON","GetMenuByItemId","ShowMenu","control","bFixed","dPos","userFunc","BX","IsIE"],"mappings":"AAAA,QAASA,WAAUC,GAAIC,OAAQC,UAE9B,GAAIC,OAAQC,IACZA,MAAKC,QAAUL,EACfI,MAAKE,WAAa,IAClBF,MAAKH,OAAS,GACdG,MAAKF,SAAW,CAChBE,MAAKG,UAAY,IACjBH,MAAKI,WACLJ,MAAKK,QAAU,KACfL,MAAKM,WAAa,IAClBN,MAAKO,WAAa,IAClBP,MAAKQ,aAAe,IACpBR,MAAKS,aAAe,KAEpBT,MAAKU,QAAU,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